<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="hmg.vo.BoardVO"%>
<%@ page import="java.util.List"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author Kim hyung soo
    since 2012. 9. 17.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 9. 17.     Kim hyung soo     최초 생성
--%>
<%
    List<BoardVO> titleList = (List<BoardVO>) request.getAttribute("TitleList");
    Integer currListID = new Integer(request.getParameter("currListID"));
    
    out.println("<option value=\"\">뉴스레터 선택</option>");
    if (titleList != null && titleList.size() > 0) {
        for (int idx = 0; idx < titleList.size(); idx++) {
            BoardVO title = titleList.get(idx);

            if (title.getListID() == currListID)
                out.println("<option value=\"" + title.getListID() + "\" selected>" + title.getTitle() + "</option>");
            else
                out.println("<option value=\"" + title.getListID() + "\">" + title.getTitle() + "</option>");
        }
    }
%>